<?php /* Smarty version Smarty-3.1.6, created on 2013-04-08 05:32:58
         compiled from "/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/view.tpl" */ ?>
<?php /*%%SmartyHeaderCode:41151085351623a6ab79a08-19975721%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'adabfc99a6fe8c7c18a6cf189ae5c91482e63024' => 
    array (
      0 => '/home/zmx/erp2.1/DzhPHP/FrameWork/Tpl/SaleOrder/view.tpl',
      1 => 1364183646,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '41151085351623a6ab79a08-19975721',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'lang' => 0,
    'rs' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_51623a6ac9818',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_51623a6ac9818')) {function content_51623a6ac9818($_smarty_tpl) {?><?php if (!is_callable('smarty_function_wz')) include '/home/zmx/erp2.1/DzhPHP/FrameWork/Extend/Vendor/Smarty/plugins/function.wz.php';
?><?php echo smarty_function_wz(array(),$_smarty_tpl);?>

<div class="add_box"　style="border: 1px solid #89A5C5;">
<table cellspacing="0" cellpadding="0" class="add_table">
    <tbody> 
         <tr>
    			<th>
    			<div class="titleth">
    				<div class="titlefl"><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_order_basic'];?>
</div>
    				<div class="afr"><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_no'];?>
：<?php echo $_smarty_tpl->tpl_vars['rs']->value['sale_order_no'];?>
</div>
    			</div></th>
    		</tr>
         <tr><td>
         <div class="basic_tb">
         <ul>  
			<li><?php echo $_smarty_tpl->tpl_vars['lang']->value['client_name'];?>
： <?php echo $_smarty_tpl->tpl_vars['rs']->value['client_name'];?>
</li>
 <?php echo smarty_function_company(array('type'=>"li",'title'=>$_smarty_tpl->tpl_vars['lang']->value['basic_name'],'hidden'=>array('name'=>'basic_id','id'=>'basic_id'),'name'=>'basic_name','value'=>$_smarty_tpl->tpl_vars['rs']->value['basic_name'],'view'=>true),$_smarty_tpl);?>

			<?php echo smarty_function_currency(array('data'=>C('CLIENT_CURRENCY'),'name'=>"currency_id",'id'=>"currency_id",'value'=>$_smarty_tpl->tpl_vars['rs']->value['currency_id'],'type'=>'li','title'=>$_smarty_tpl->tpl_vars['lang']->value['currency_name'],'require'=>'','view'=>true),$_smarty_tpl);?>

			<li><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_date'];?>
：<?php echo $_smarty_tpl->tpl_vars['rs']->value['fmd_order_date'];?>
</li>
			<?php if (C('sale.relation_sale_follow_up')==1){?>
				<li><?php echo $_smarty_tpl->tpl_vars['lang']->value['expect_shipping_date'];?>
：<?php echo $_smarty_tpl->tpl_vars['rs']->value['fmd_expect_shipping_date'];?>
</li> 
			<?php }?>
		 </ul>
         </div>
         </td></tr>   
          <tr><th><?php echo $_smarty_tpl->tpl_vars['lang']->value['sale_order_detail'];?>
</th></tr>   
          <tr><td><?php echo $_smarty_tpl->getSubTemplate ("SaleOrder/detail.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</td></tr>
          <?php if ($_smarty_tpl->tpl_vars['rs']->value['delivery']['list']){?>
          <tr><th><?php echo $_smarty_tpl->tpl_vars['lang']->value['delivery_order_detail'];?>
</th></tr>   
          <tr><td><?php echo $_smarty_tpl->getSubTemplate ("SaleOrder/detail_delivery.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
</td></tr> 
          <?php }?>
         
          <tr><td valign="top" class="b_top">
          
				<table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr>
				    <td class="b_top t_right"><?php echo $_smarty_tpl->tpl_vars['lang']->value['preferential_money'];?>
：</td>
				    <td width="121" class="b_top t_right_red"><span><?php echo $_smarty_tpl->tpl_vars['rs']->value['dml_pr_money'];?>
</span></td>
				  </tr>
				    <tr id="sale_funds_after">
				    <td class="b_top t_right" ><?php echo $_smarty_tpl->tpl_vars['lang']->value['after_preferential_money'];?>
：</td>
				    <td class="b_top t_right_red" id="after_preferential_money"><span><?php echo $_smarty_tpl->tpl_vars['rs']->value['real_money'];?>
<span></td>
				  </tr> 
				  </table> 
				  <?php echo $_smarty_tpl->getSubTemplate ("Accounts/sale_funds_list_view.tpl", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>


				  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="add_table_money">
				  <tr id="payadd">
				    <td class="t_right b_top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['need_get_money1'];?>
：</td>
				    <td class="b_top t_right" width="121"><span class="t_right_red" id="need_get_money"><?php echo $_smarty_tpl->tpl_vars['rs']->value['fund']['sale_order_paid']['dml_need_paid'];?>
</span><input type="hidden" id="old_need_get_money" value="0"></td>
				  </tr> 
				  </table>
				  
				  
          </td></tr>
          <tr><td class="pad_top_10">
	          <table width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
					<td width="10%" valign="top" ><?php echo $_smarty_tpl->tpl_vars['lang']->value['upload_pic'];?>
：</td>
					<td class="t_left" valign="top">
						<?php if ($_smarty_tpl->tpl_vars['rs']->value['pics']){?>
							<?php echo smarty_function_showFiles(array('from'=>$_smarty_tpl->tpl_vars['rs']->value['pics']),$_smarty_tpl);?>

						<?php }?></td>
					<td width="10%" valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['receive_addr'];?>
：</td>
					<td class="t_left" width="25%" valign="top"><?php echo $_smarty_tpl->tpl_vars['rs']->value['receive_addr'];?>
</td>
					<td width="10%" valign="top"><?php echo $_smarty_tpl->tpl_vars['lang']->value['comments'];?>
：</td>
					<td class="t_left" width="25%" valign="top"><?php echo $_smarty_tpl->tpl_vars['rs']->value['comments'];?>
</td>
					</tr>
				</tbody>
			 </table>
      </td></tr>                      
   </tbody>          
  </table> 
  <?php echo smarty_function_staff(array('add_user'=>($_smarty_tpl->tpl_vars['rs']->value['add_real_name']),'create'=>($_smarty_tpl->tpl_vars['rs']->value['fmd_create_time']),'id'=>($_smarty_tpl->tpl_vars['rs']->value['add_user'])),$_smarty_tpl);?>
 
</div> 
<?php }} ?>